//
//  MineCollectionReusableView.m
//  MyProject
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥0825. All rights reserved.
//

#import "MineCollectionReusableView.h"
#import "RegisterViewController.h"
#import "LoginViewController.h"

@implementation MineCollectionReusableView


- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.view = [[UIView alloc] init];
        [self addSubview:self.view];
        [_view release];
        
        self.image = [[UIImageView alloc] init];
        [self.view addSubview:self.image];
        
        self.buttonLogin = [UIButton buttonWithType:UIButtonTypeSystem];
        [self.view addSubview:self.buttonLogin];

    }
    return self;
}

- (void)layoutSubviews{
   
    [super layoutSubviews];
    
    self.view.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    
    
    self.buttonLogin.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    self.buttonLogin.titleLabel.font = [UIFont systemFontOfSize:18 weight:25];
    
    
    self.image.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    self.image.image = [UIImage imageNamed:@"lr.png"];
    
//    [self.buttonLogin setTitle:@"我们一起去玩耍" forState:UIControlStateNormal];
//    [self.buttonLogin setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//    [self.buttonLogin addTarget:self action:@selector(clickLogin:) forControlEvents:UIControlEventTouchUpInside];
    
    
    
}


- (void)clickLogin:(UIButton *)button{
    
    LoginViewController *loVC = [[LoginViewController alloc] init];
    [self.loginVC.navigationController pushViewController:loVC animated:YES];
    
}







@end
